home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / NotificationMon ƒ / NotificationMon.ƒ / Source / InitMac.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-22  |  413 b   |  29 lines  |  [TEXT/KAHL]

  1. #include <GestaltEQU.h>
  2.  
  3. InitToolBox(short numberOfMasters)
  4. {
  5.     int     index;
  6.     long    sysVersion;
  7.     
  8.     InitGraf(&thePort);
  9.     InitFonts();
  10.     InitWindows();
  11.     InitMenus();
  12.     InitCursor();
  13.     TEInit();
  14.     FlushEvents(everyEvent, 0);
  15.     InitDialogs(nil);
  16.     
  17.     while(numberOfMasters--)
  18.         MoreMasters();
  19.         
  20.     MaxApplZone();
  21.     
  22.     Gestalt(gestaltSystemVersion,&sysVersion);
  23.     
  24.     if(sysVersion < 0x0700)    {
  25.         Alert(128,nil);
  26.         ExitToShell();
  27.     }
  28. }
  29.